package com.ruoyi.provider.api

import com.ruoyi.provider.api.factory.RemoteProviderFallbackFactory
import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.GetMapping

/**
 *@author YanYu
 *@date 2024/9/22 14:31
 */
@FeignClient(
    contextId = "remoteProviderService",
    value = "ruoyi-provider",
    fallbackFactory = RemoteProviderFallbackFactory::class
)
interface RemoteProviderService {
    @GetMapping("/demo")
    fun providerDemo(): String

    @GetMapping("/demo-large")
    fun providerDemoLarge(): String
}